home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12106 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  586 b 

  1. Path: prodigy.com!usenet
  2. From: FBRZ55A@prodigy.com (Paul Emge)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: C++ problem with constructor.
  5. Date: 18 Mar 1996 11:09:40 GMT
  6. Organization: Prodigy Services Company  1-800-PRODIGY
  7. Distribution: world
  8. Message-ID: <4ijg9k$1g2o@usenetp1.news.prodigy.com>
  9. References: <dogggp.muy@latcs1.lat.oz.au>
  10. NNTP-Posting-Host: innugap2-int.news.prodigy.com
  11. X-Newsreader: Version 1.2
  12.  
  13. The constructors in your object never allocate any memory for the street 
  14. and city strings, just pointers. So when you use strcpy you are 
  15. overriding memory. 
  16. Hope this helps..
  17.  
  18.  
  19.